package com.ynny.extends_.example01;

public class Circle {

    //半径
    private double radius;

    public Circle(){
        this.radius = 1;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    //计算圆的面积
    public double findArea(){

//       s = Π * r * r;

       double s = 3.14 * radius * radius;

       return s;

    }


}
